package com.kaoker.system.controller;

import java.util.ArrayList;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.kaoker.system.entity.Section;

/**
 * Handles requests for the application home page.
 */
@Controller
public class KeyNotePointController {

	private static final Logger logger = LoggerFactory.getLogger(KeyNotePointController.class);

	/**
	 * Simply selects the home view to render by returning its name.
	 */

	
	@RequestMapping(value="/keyNotePoint", method=RequestMethod.GET)
	public ModelAndView keyNotePoint() {
		String nav="中级会计实务》第一章";
		ModelAndView mv=new ModelAndView("keyNotePoint");
		mv.addObject(nav);
		mv.addObject("nav", nav);
		List a=new ArrayList();
		for(int i=0;i<10;i++){
			Section s=new Section();
			s.setName("select"+i);
			a.add(s);
		}
		mv.addObject("list",a);
		return mv;
	}
}

